/**
 * 
 */
package com.oscarmovie.action;

import com.oscarmovie.Constants;
import com.oscarmovie.model.Account;

public class AdminAction  {
	private Account user;
	public String execute() throws Exception {
		return Constants.SUCCESS;
	}
	public String login(){
		if("oscar".equals(user.getUsername()) && "Aspen000".equals(user.getPassword())){
			return Constants.SUCCESS;
		}			
		else
			return Constants.LOGIN;
	}
	public void setUser(Account user) {
		this.user = user;
	}
	public Account getUser() {
		return user;
	}
}
